package com.lagou.homework.entity;

import java.util.Date;

/*
 * @className Employee
 * @description 员工实体类
 * @author admin
 * @date 2022/4/11 15:10
 * */
public class Employee {
    private int id;
    private String name;
    private String sex;
    private double salary;
    private double bonus;
    private Date join_date;

    public Employee() {
    }

    public Employee(int id, String name, String sex, double salary, double bonus, Date join_date) {
        this.id = id;
        this.name = name;
        this.sex = sex;
        this.salary = salary;
        this.bonus = bonus;
        this.join_date = join_date;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public double getSalary() {
        return salary;
    }

    public void setSalary(double salary) {
        this.salary = salary;
    }

    public double getBonus() {
        return bonus;
    }

    public void setBonus(double bonus) {
        this.bonus = bonus;
    }

    public Date getJoin_date() {
        return join_date;
    }

    public void setJoin_date(Date join_date) {
        this.join_date = join_date;
    }

    @Override
    public String toString() {
        return "Employee{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", sex=" + sex +
                ", salary=" + salary +
                ", bonus=" + bonus +
                ", join_date=" + join_date +
                '}';
    }
}
